﻿<%@ Page Language="C#" MasterPageFile="~/Shared/Shared.master" %>

<asp:Content ID="C1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="C2" ContentPlaceHolderID="CPH1" runat="Server">
    <script>
        function OnClientItemSelected(sender, args) {
            var imageSrc = args.get_path();
            if (imageSrc.match(/\.(\w+)$/gi)) {
                parent.setSrc(imageSrc);
            }
        }
    </script>
    <telerik:RadFileExplorer ID="RadFileExplorer1" runat="server" VisibleControls="TreeView"
        ExplorerMode="FileTree" Configuration-ViewPaths="~/upload/mfile" OnClientItemSelected="OnClientItemSelected">
    </telerik:RadFileExplorer>
</asp:Content>